package entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author gxa
 * @since 2023-02-27
 */
@Getter
@Setter
@TableName("tb_empl")
@ApiModel(value = "Empl对象", description = "")
public class Empl implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "empl_id", type = IdType.AUTO)
    private Integer emplId;

    @ApiModelProperty("成员账号	")
    @TableField("empl_number")
    private String emplNumber;

    @ApiModelProperty("员工姓名	")
    @TableField("empl_name")
    private String emplName;

    @ApiModelProperty("手机号	")
    @TableField("empl_phone")
    private String emplPhone;

    @ApiModelProperty("密码")
    @TableField("empl_pwd")
    private String emplPwd;

    @ApiModelProperty("邮箱")
    @TableField("empl_mail")
    private String emplMail;

    @ApiModelProperty("上次登录时间	")
    @TableField("last_time")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime lastTime;

    @ApiModelProperty("备注信息	")
    @TableField("empl_note")
    private String emplNote;

    @ApiModelProperty("登录地区")
    @TableField("last_address")
    private String lastAddress;


}
